package com.szlanyou.protocol_service;

/**
 * Created by sq on 2019/4/16.
 * Functions:协议通道Util
 */
public class ProtocolUtil {
    /*
     * 数据传输格式
     * #{数据1，数据2，数据3......}#
     */
    public static String DATA_HEAD = "#{";
    public static String DATA_END = "}#";

    public static String makeDataIntAndStr(int messageType, int messageNum, int airNum, String testPerson) {
        return DATA_HEAD + messageType + "," + messageNum + "," + airNum + "," + testPerson + DATA_END;
    }
}
